#!/usr/bin/python -O
# -*- coding: utf8 -*-

import sys
import traceback

if __name__ == "__main__":
    m = None
    try:
        from main import Main
        m = Main()
        m.run()
    except:
        traceback.print_exc()
        sys.exit(1)
    finally:
        if m:
            m.do_stop()
            
